import request from "../axios";

export default {
	
	
	/**
	 * @param {Object} singer增加歌手
	 */
	add(singer){
		return request({
			url:'/singer',
			method:'post',
			data :singer
		})
	},
	
	/**
	 * 分页查询数据
	 */
	queryPage(param){
		return request({
			url:`/singer`,
			method: 'get',
			params: param
		})
	},
	/**
	 * @param {Object} id  删除歌手
	 */
	delete(id){
		return request({
			url:`/singer/${id}`,
			method:'delete',
		
			
			
		})
	},
	
	/**
	 * @param {Object} singer  修改歌手
	 */
	update(singer){
		return request({
			url:`/singer/update`,
			method:'put',
		    data:singer
		})
		
	},
	
	/**
	 * 批量删除
	 */
	deleteAll(id){
		return request({
			url:`/singer/deleteAll`,
			method:'delete',
		    data: id
		})
	}
	
	
	
	
	
	
	
	
	
	
	
	}